package com.daiyang.Config;

import com.daiyang.model.Student;
import org.springframework.context.annotation.*;

@Configuration
public class SpringConfig {

    /**
     * @Author: zhangchunsheng
     * @Date: 2025/1/15 9:10
     * 将student1对象,装配到IOC容器中
     */
    @Bean(value = "student1")
   // @Scope("singleton")
//   @Scope("prototype")
    public Student getStudent() {
        return new Student(1, "张三", 20);
    }


}